package org.pzy.study.one;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * BeanA
 *
 * @author pan
 * @date 8/22/20
 */
@Component
public class BeanA {

	@Autowired
	private BeanB beanB;

	public BeanA() {
		System.out.println("BeanA初始化!");
	}

	@PostConstruct
	public void init(){
		System.out.println("BeanA init");
	}

	public BeanB getBeanB() {
		return beanB;
	}

	public void setBeanB(BeanB beanB) {
		this.beanB = beanB;
	}
}
